#pragma once

#include "cFont.h"
#include "..\cMesh.h"
#include <d3d10.h>

class cText	//non-unicode
{
public:
	cText(const std::string & textString, cFont * fp, ID3D10Device * dev);
	~cText();

	void Draw(ID3D10Device * dev);

private:
	struct TextPoint
	{
		float x, y, tu, tv;
	};

	void CreateAll(const std::string & str, ID3D10Device * dev);

	MeshData mesh;
	cFont * fontPtr;
	
};